Skip to content

Different inputbox sizes basedon answer length#175

Open
tekboart wants to merge 4 commits intossricardo:masterfrom
tekboart:different-inputbox-sizes-basedon-answer-length
Open

Different inputbox sizes basedon answer length#175
tekboart wants to merge 4 commits intossricardo:masterfrom
tekboart:different-inputbox-sizes-basedon-answer-length

Conversation

@tekboart
Copy link
Copy Markdown

@tekboart tekboart commented Jan 6, 2026

Problem

The current version only uses ftb-md with width 150px.

The current, fixed approach is useful to remove recognition, as all clozes will have the same size regardless of their text-length. However, it's sometimes awkward and waste of space if we use 150px for a cloze that has only 5 letters.

In my humble opinion, having a few more width options would remove recognition but at the same is proportional to the cloze text-length.

Solution

The solution adds 5 threshold by which the width of the input is set.

Screenshot_20260104_112139

Thank you so much for you useful plugin. I have been using your plugin for almost 5 years (since introduced) and it has been a boon to my code learning in Anki. 😊👏

(1) [fix] last ver only returned 'ftb-md' (e.g., no ftb-sm, ftb-lg, etc.)
(2) added a 'ftb-xl' for text lengh greater than 30
(1) except for 'ftb-md' all other classes were missing
(2) added 'ftb-xl' as well
(3) the width of each of the added classes are based on 8 (1 letter is almost 8 pixel)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant